package com.mqtt.ctwingmqtt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mqtt.ctwingmqtt.domain.entity.DeviceEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
@Mapper
public interface DeviceMapper extends BaseMapper<DeviceEntity> {
    int insertl(DeviceEntity deviceEntity);

    boolean getdeviceAddress(String deviceAddress);

    Map<Integer, String> getmp(String deviceAddress);

    String getProductName(String deviceAddress);
}
